package com.example.netease.dao;

import com.example.netease.entity.Card;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CardDao {

    @Select("select * from card")
    Card select();


    @Update("update card set card_content=#{cardContent},color=#{color},card_name=#{cardName},font_color=#{fontColor} where id=1")
    int update(@Param("cardContent") String cardContent, @Param("color") String color,@Param("cardName") String cardName,@Param("fontColor") String fontColor);

}
